/**
 * 
 */
package me.myachievements.web.restricted.account;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.spring.injection.annot.SpringBean;

import me.myachievements.persistence.account.Account;
import me.myachievements.persistence.account.AccountPersistenceManager;

import me.myachievements.web.ErrorPage;
import me.myachievements.web.account.AccountForm;
import me.myachievements.web.account.AccountFormPanel;
import me.myachievements.web.account.RegistrationFormPanel;
import me.myachievements.web.account.UpdateAccountForm;
import me.myachievements.web.account.UpdateAccountFormPanel;
import me.myachievements.web.administration.AdministrationPage;
import me.myachievements.web.restricted.RestrictedPage;

/**
 * @author besseym
 *
 */
public class UpdateAccountPage extends RestrictedPage {

	/**
	 * 
	 */
	public UpdateAccountPage() {
		
		Account account = this.getMyAchievementsSession().getAccount();
		
		add(new FeedbackPanel("feedback"));
		
		AccountFormPanel accountFormPanel = new UpdateAccountFormPanel("account_form_panel", account);
		add(accountFormPanel);
	}

}
